﻿<!DOCTYPE html>
<html>
<head>
    <script src="https://cdn.jsdelivr.net/npm/axios/dist/axios.min.js"></script>
    <script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
    <meta charset="utf-8" />
    <title></title>
    
</head>
<body>
    <div id="vuet">
        <table>
            <tr v-for="item in wangye">
                <td>{{item.id}}</td>
                <td>{{item.RenYuanXingMing}}</td>
                <td>{{item.RuZhiShiJian}}</td>
                <td>{{item.LianXiDianHua}}</td>
                <td>{{item.JiaTingDiZhi}}</td>
                <td>{{item.ZhangHao}}</td>
                <td>{{item.MiMa}}</td>
                <td><input type="button" name="name" value="修改" /></td>
            </tr>
        </table>
    </div>
</body>
<script>
    var app = new Vue({
        el: "#vuet",
        data: {
            wangye: []
        },
        methods: {
            getstr: function () {
                var that = this;
                axios.get("..//VueGetList").then(
                    function (response) {
                        console.log(response.data);
                        that.wangye = response.data;
                    },
                    function (err) {
                        console.log(err);
                    }
                )
            },
            getstr1: function () {
                window.open("home/VueAdd");
            }
        },
        mounted() {
            this.getstr();
        }
    })
</script>
</html>